export const arr = [
  { text: '衣柜', icon: 'yigui' },
  { text: '宽带', icon: 'wuxianwangluo' },
  { text: '洗衣机', icon: 'xiyiji' },
  { text: '热水器', icon: 'haofangtuo400iconfont2reshuiqi' },
  { text: '电视', icon: 'dianshiji' },
  { text: '冰箱', icon: 'bingxiang' },
  { text: '沙发', icon: 'shafa' },
  { text: '天然气', icon: 'tianranqi' },
  { text: '空调', icon: 'kongtiao' },
  { text: '暖气', icon: 'nuanqi' },
]

export const changeIcon = (text) => {
  const newArr=[]
  arr.forEach(item => {
    text.split(',').forEach(item1 => {
      if (item.text === item1) {
        newArr.push(item)
      }
    })
  })
  return newArr
}
